﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.BaseData.Entitys.Common.Entity;

/// <summary>
/// 物料信息实体.
/// </summary>
[SugarTable("com_base_material", "物料信息")]
[Tenant(ClaimConst.TENANTID)]
public class ComBaseMaterialEntity : CLDEntityBase
{
    /// <summary>
    /// 物料编码.
    /// </summary>
    [SugarColumn(ColumnName = "F_Code", ColumnDescription = "物料编码")]
    public string Code { get; set; }

    /// <summary>
    /// 物料名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_Name", ColumnDescription = "物料名称")]
    public string Name { get; set; }

    /// <summary>
    /// 计量单位.
    /// </summary>
    [SugarColumn(ColumnName = "F_Unit", ColumnDescription = "计量单位")]
    public string Unit { get; set; }

    /// <summary>
    /// 物料规格.
    /// </summary>
    [SugarColumn(ColumnName = "F_Specification", ColumnDescription = "物料规格")]
    public string Specification { get; set; }

    /// <summary>
    /// 物料组编号.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialGroupCode", ColumnDescription = "物料组编号")]
    public string MaterialGroupCode { get; set; }

    /// <summary>
    /// 物料类型.
    /// </summary>
    [SugarColumn(ColumnName = "F_Type", ColumnDescription = "物料类型")]
    public string Type { get; set; }

    /// <summary>
    /// 物料分类.
    /// </summary>
    [SugarColumn(ColumnName = "F_Classify", ColumnDescription = "物料分类")]
    public string Classify { get; set; }

    /// <summary>
    /// 是否启用批次管理：Y 已启用  N未启用.
    /// </summary>
    [SugarColumn(ColumnName = "F_IsBtch", ColumnDescription = "是否启用批次管理：Y 已启用  N未启用")]
    public string IsBtch { get; set; }

    /// <summary>
    /// 是否启用SN管理：Y 已启用  N未启用.
    /// </summary>
    [SugarColumn(ColumnName = "F_IsSn", ColumnDescription = "是否启用SN管理：Y 已启用  N未启用")]
    public string IsSn { get; set; }

    /// <summary>
    /// 是否辅料.
    /// </summary>
    [SugarColumn(ColumnName = "F_AuxiliaryFlag", ColumnDescription = "是否辅料")]
    public string AuxiliaryFlag { get; set; }

    /// <summary>
    /// 是否委外.
    /// </summary>
    [SugarColumn(ColumnName = "F_OutsourcingFlag", ColumnDescription = "是否委外")]
    public string OutsourcingFlag { get; set; }

    /// <summary>
    /// 最小单位.
    /// </summary>
    [SugarColumn(ColumnName = "F_MinUnit", ColumnDescription = "最小单位")]
    public string MinUnit { get; set; }

    /// <summary>
    /// 重量单位.
    /// </summary>
    [SugarColumn(ColumnName = "F_WeightUnit", ColumnDescription = "重量单位")]
    public string WeightUnit { get; set; }

    /// <summary>
    /// 最小发货单位.
    /// </summary>
    [SugarColumn(ColumnName = "F_DeliveryUnit", ColumnDescription = "最小发货单位")]
    public string DeliveryUnit { get; set; }

    /// <summary>
    /// 所属地点.
    /// </summary>
    [SugarColumn(ColumnName = "F_Site", ColumnDescription = "所属地点")]
    public string Site { get; set; }

    /// <summary>
    /// 备注.
    /// </summary>
    [SugarColumn(ColumnName = "F_Remarks", ColumnDescription = "备注")]
    public string Remarks { get; set; }

    /// <summary>
    /// 文件信息.
    /// </summary>
    [SugarColumn(ColumnName = "F_FileInfo", ColumnDescription = "文件信息")]
    public string FileInfo { get; set; }

    /// <summary>
    /// 客户料号.
    /// </summary>
    [SugarColumn(ColumnName = "F_CustomerNumber", ColumnDescription = "客户料号")]
    public string CustomerNumber { get; set; }

    /// <summary>
    /// 1.待检，Y.检验合格、N.检验不合格、0.免检.
    /// </summary>
    [SugarColumn(ColumnName = "F_IsInspect", ColumnDescription = "1.待检，Y.检验合格、N.检验不合格、0.免检")]
    public string IsInspect { get; set; }
}